<style type="text/css">
	#tipOffsInfoForm .bg-info img{
		max-width: 30%;
	} 

</style>
<script>
function tipOffsInfo(userid, userName, avatar, contentId, content, type){
	if(content && content.length > 130){
		content = content.slice(0,130) + "...";
	}
	layer.confirm(
		'<div class="tipoffs-container">\
			<form id="tipOffsInfoForm" action="' + G_BASE_URL + 'index.php?c=Tipoffs&a=sendInfo">\
			<div class="col-xs-6 col-md-4 visible-lg">\
				<h4>举报的对象</h4>\
				<img src="' + avatar + '" style="width:100%;border-radius: 5%;" alt="' + userName + '的头像">\
				<p>' + userName + '</p>\
			</div>\
			<div class="col-xs-6 col-md-4 hidden-lg">\
				<span>举报的对象: ' + userName + '</span>\
			</div>\
			<input type="hidden" name="userid" value=' + userid + '>\
			<div class="col-xs-12 col-md-8">\
				<h4>您举报的内容</h4>\
				<p class="bg-info" style="padding:15px">' + content + '</p>\
				<input type="hidden" name="contentId" value=' + contentId + '>\
			</div>\
			<div class="col-xs-12 col-md-8">\
				<h4>举报说明(可选):</h4>\
				<textarea class="form-control" name="sendMsg" rows="3" placeholder="您可以详细说明描述恶意行为"></textarea>\
			</div>\
			<input  type="hidden" name="type" value=' + type + '>\
			</form>\
		</div>',
		{title: '举报', area: 'auto', maxWidth: 600, btn: ['提交','关闭']}, 
		function(index, el){
			AWS.loading('show');
			AWS.ajax_post('#tipOffsInfoForm', function(type, resut) {
				AWS.loading('hide');
				if (resut.code) {
					layer.alert('举报信息已成功提交，感谢您对净化网络环境所做的贡献！', {
						icon: 1,
						title: '举报提交',
						skin: 'layer-ext-moon',
						btn: ['确定','关闭']
					})
				} else {
					layer.alert(resut.msg, {
						icon: 3,
						title: '举报提交',
						skin: 'layer-ext-moon',
						btn: ['关闭']
					})
				}
				
			});
			layer.close(index);
		}
	);
}
//tipOffsInfo(1,'马化腾','http://tva1.sinaimg.cn/crop.0.0.720.720.180/005JKVuPjw8ers4osyzhaj30k00k075e.jpg', '3','由于LayIM是我们目前唯一的付费组件，所以在你下载的layui包里，并不包含LayIM。如果你觉得Layui对你有所帮助，并且你希望Layui能够持续发展下去，那么我们很欢迎你能捐赠Layui，成为我们的VIP2+，这对我们的促进将会极大！')

</script>